#include "rclcpp/rclcpp.hpp"
#include "std_msgs/msg/int64.hpp"

#include <chrono>
#include <functional>

using namespace std::chrono_literals;

namespace my_namespace
{
    class NumberPubNode: public rclcpp::Node
    {
    public:
        NumberPubNode(const rclcpp::NodeOptions &options);

    private:
        void publish_number();
        
        rclcpp::Publisher<std_msgs::msg::Int64>::SharedPtr publisher_;
        rclcpp::TimerBase::SharedPtr timer_;
        size_t count = 0;
    };
} // namespace my_namespace


#include "rclcpp_components/register_node_macro.hpp"
RCLCPP_COMPONENTS_REGISTER_NODE(my_namespace::NumberPubNode);
